;; +lsp-ui.el --- Initialization and mode setting.

;;; Homepage:
;; https://github.com/emacs-lsp/lsp-ui

;;; Commentary:
;; UI integrations for `lsp-mode'.

;;; Code:

(use-package lsp-ui
  :ensure
  :bind
  (:map lsp-ui-doc-mode-map
	("M-h" . lsp-ui-doc-hide))
  (:map lsp-ui-mode-map
	("M-s d" . lsp-ui-peek-find-definitions)
	("M-s r" . lsp-ui-peek-find-references)
	("M-h" . lsp-ui-doc-show))
  :init
  (setq lsp-ui-sideline-show-code-actions t
	lsp-ui-doc-show-with-mouse nil
	lsp-ui-peek-show-directory t
	lsp-ui-sideline-delay 0))

(provide '+lsp-ui)

;;; +lsp-ui.el ends here
